﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;
using Deloitte;
using Deloitte.Controls;

namespace myTunes
{
    public partial class iTunesArtistsImporter : Form
    {
        public iTunesArtistsImporter()
        {
            InitializeComponent();
        }

        private void button1_Click(object sender, EventArgs e)
        {
            BindingList<string> artists = Deloitte.iTunes.iTunesUtility.GetAllArtists().ToBindingList<string>();
            BindingListFilterDataGridViewControl<string> artistFilterControl = new BindingListFilterDataGridViewControl<string>(artists);
            artistFilterControl.Dock = DockStyle.Fill;
            panel1.Controls.Add(artistFilterControl);
        }
    }
}
